  import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '../components/Home.vue'

const routes = [
  {
    name: 'Login',
    path: '/Login',
    mate:{
        title:"登录"
    },
    component: ()=>import('./../views/Login.vue'),
  },
  {
    name: '',
    path: '/',
    mate:{
      title:"登录"
    },
    component: ()=>import('./../views/Login.vue'),
  },
  {
    name: 'home',
    path: '/home',
    mate:{
        title:"首页"
    },
    component: Home,
    redirect:'/welcome',
    children: [
      {
        name: 'welcome',
        path: '/welcome',
        mate:{
            title:"欢迎页"
        },
        component: ()=>import('./../views/Welcome.vue'),
      },
    ]
  },

]

const router = createRouter({
    history:createWebHashHistory(),
    routes
})
export default router